package cn.njxzc.examples;

import java.util.LinkedList;
import java.util.Collections;

public class Exam8_12 {

	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static void main(String[] args) {
		LinkedList actors = new LinkedList();
		actors.add("Jackie Chan");
		actors.add("Elizabeth Taylor");
		actors.add("Mel Gibson");
		actors.add("Brad Pitt");
		actors.add("Russel Crowe");
		System.out.println("原始的演员名单： ");
		System.out.println(actors);
		Collections.sort(actors);
		System.out.println("排序后的演员名单： ");
		System.out.println(actors);
		Collections.shuffle(actors);// 乱序
		System.out.println("乱序后的演员名单： ");
		System.out.println(actors);

	}

}